home *** CD-ROM | disk | FTP | other *** search
/ Micromanía: 150 Juegos 2010 / 150Juegos_16.iso / Shareware / Shape Smash / shape-smash.swf / scripts / _opaquePanelStyle.as < prev    next >
Encoding:
Text File  |  2010-05-14  |  1.1 KB  |  39 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _opaquePanelStyle
  8.    {
  9.       public function _opaquePanelStyle()
  10.       {
  11.          super();
  12.       }
  13.       
  14.       public static function init(param1:IFlexModuleFactory) : void
  15.       {
  16.          var style:CSSStyleDeclaration = null;
  17.          var fbs:IFlexModuleFactory = param1;
  18.          style = StyleManager.getStyleDeclaration(".opaquePanel");
  19.          if(!style)
  20.          {
  21.             style = new CSSStyleDeclaration();
  22.             StyleManager.setStyleDeclaration(".opaquePanel",style,false);
  23.          }
  24.          if(style.defaultFactory == null)
  25.          {
  26.             style.defaultFactory = function():void
  27.             {
  28.                this.borderColor = 16777215;
  29.                this.backgroundColor = 16777215;
  30.                this.headerColors = [15198183,14277081];
  31.                this.footerColors = [15198183,13092807];
  32.                this.borderAlpha = 1;
  33.             };
  34.          }
  35.       }
  36.    }
  37. }
  38.  
  39.